﻿<%@ control language="C#" autoeventwireup="true" inherits="UserControls_3_KiemTraTinNhan, App_Web_ktdrx0ti" %>


    <form id="form1" runat="server">
    <p style="text-align: center">
        <table style="width:100%;">
            <tr>
                <td style="text-align: left">
                    <asp:Button ID="Button1" runat="server" style="text-align: left" Text="Làm lại" OnClick="Button1_Click" OnClientClick="return confirm('Xóa toàn bộ bản tin nháp và quay lại soạn tin?');" />
                </td>
                <td style="text-align: center">
                    <asp:Button ID="Button2" runat="server" Text="Gửi tin" OnClick="Button2_Click" />
                    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Về trang chủ" Visible="False" />
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
</p>

<asp:GridView ID="GridView1" EmptyDataText="Không có bản ghi nào" runat="server" AutoGenerateColumns="False" DataSourceID="SMSDataSource" EnableModelValidation="True" Height="178px" Width="785px" AllowPaging="True" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" HorizontalAlign="Center" PageSize="20" style="text-align: left; margin-right: 35px" DataKeyNames="id">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="id" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="id" />
        <asp:BoundField DataField="MaSV" HeaderText="Mã SV" SortExpression="MaSV" >
        </asp:BoundField>
        <asp:BoundField DataField="SDT" HeaderText="SĐT" SortExpression="SDT" >
        </asp:BoundField>
        <asp:BoundField DataField="NoiDung" HeaderText="Nội dung" SortExpression="NoiDung" >
        </asp:BoundField>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:CheckBox ID="myCheckBox" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#CCCC99" />
    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
    <PagerSettings Position="TopAndBottom" Mode="NumericFirstLast" />
    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
    <RowStyle BackColor="#F7F7DE" HorizontalAlign="Left" />
    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SMSDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SMSWebConnectionString %>" SelectCommand="SELECT [MaSV], [SDT], [NoiDung], [id] FROM [TinNhap] WHERE ([MaND] = @MaND)">
    <SelectParameters>
        <asp:ControlParameter ControlID="TextBox1" Name="MaND" PropertyName="Text" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
        <table style="width:100%;">
            <tr>
                <td>&nbsp;</td>
                <td style="text-align: center">
                    <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="Xóa" OnClientClick="return confirm('Xóa các mục chọn?');" />
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
<asp:TextBox ID="TextBox1" runat="server" Visible="False"></asp:TextBox>

        </form>